import request from '@/axios/request';

enum Api {
    ADDLOCTION_API = '/upkeep_slot/addloction',
    UPDATELOCTION_API = '/upkeep_slot/updateloction',
    GETLOCTION_API = '/upkeep_slot/getLocation',
}

// 新增货位
export function addLocation(data: any) {
    return request.post(Api.ADDLOCTION_API,data);
}

// 修改货位
export function updateLocation(data: any) {
    return request.post(Api.UPDATELOCTION_API,data);
}

// 获取位置
export function getLocationData(data:any) {
    return request.post(Api.GETLOCTION_API,data);
}